package org.mspring.mlog.dao;

import java.util.List;

import org.mspring.mlog.entity.Catalog;
import org.mspring.mlog.entity.Post;
import org.mspring.mlog.entity.Tag;

public interface PostDao extends BaseDao {

	int getPageCount(Post post);

	List<Post> getPage(Post post);

	List<Catalog> getPostCatalog(Post p);

	List<Tag> getPostTag(Post p);

	Post getPostById(Post post);

	List<Post> urlExists(Post post);

	void updatePost(Post post);

	void updateCatalogs(Post param);

	void updateTags(Post param);

	List<Post> selectTag(Post param);

	void insertTag(Post param);

	void insertPost(Post post);

	List<Post> getPostByTime(Post post);

	void deleteCatalogById(Post post);

	void deletePostById(Post post);

	void updatePostStatus(Post post);

	Post getPostByUrl(String url);

}
